﻿<%@ Page Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="PurchaseCompanyUpdate_UnBid.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.Procurement.PurchaseCompanyUpdate_UnBid"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script language="javascript" type="text/javascript">


        function insertCompanyInfo(goodsInfo) {
            var varGoodsInfo = goodsInfo.split('|');
            var hdnCompnayId = document.getElementById("ctl00_ContentPlaceHolder1_hdnCompnayId");
            var hdnCompanyName = document.getElementById("ctl00_ContentPlaceHolder1_hdnCompanyName");
            var txtCompanyName = document.getElementById("ctl00_ContentPlaceHolder1_txtCompanyName");
            hdnCompnayId.value = varGoodsInfo[0];
            hdnCompanyName.value = varGoodsInfo[1];
            txtCompanyName.value = varGoodsInfo[1];
        }

        function displaybtn() {
            document.getElementById("btnCompanySelect").style.display="none";
        }

        function insertCompanyInfo_PS(CompanyInfo) {
            var arrayInfo = CompanyInfo.split('|');
            document.getElementById("ctl00_ContentPlaceHolder1_hdnCompnayId").value = arrayInfo[0];
            document.getElementById("ctl00_ContentPlaceHolder1_hdnCompanyName").value = arrayInfo[1];
            document.all.ctl00$ContentPlaceHolder1$txtCompanyName.value = arrayInfo[1];
            //document.all.ctl00_ContentPlaceHolder1_HiddenField1.value = arrayInfo[1];
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="maincon">
        <div class="note">
            设置产品默认配送</div>
        <div class="note2">
        </div>
        <table>
            <tr>
                <th style="width: 100px;">
                    <asp:Label ID="lblPurchaseOrderName" runat="server" Text="产品名称："></asp:Label>
                </th>
                <td align="center">
                    <asp:Label runat="server" ID="lblGoodsName"></asp:Label>
                </td>
                <th style="width: 100px;">
                    <asp:Label ID="lblPerson" runat="server" Text="规格型号："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="lblGg" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                
                <th style="width: 100px;">
                    <asp:Label ID="lblStatus" runat="server" Text="生产企业："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="lblCompanyName_SC" runat="server"></asp:Label>
                </td>
                <th style="width: 100px;">
                    <asp:Label ID="Label2" runat="server" Text="投标企业："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="lblCompanyName_ZB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th style="width: 100px;">
                    <asp:Label ID="Label4" runat="server" Text="采购限价："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="lblBidPrice" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <br />
    </div>
    <div class="maincon">
        <div class="note">
            配送情况</div>
        <div class="note2">
        </div>
        <table>
            <tr>
                <th style="width: 100px;">
                    <asp:Label ID="Label3" runat="server" Text="配送企业："></asp:Label>
                </th>
                <td align="center">
                    <asp:TextBox ID="txtCompanyName" runat="server" Width="160px" Enabled="false"></asp:TextBox>
                    <input id="btnCompanySelect" type="button" value="选择" class="btn" onclick="window.open('PurchaseCompanySelect_PS.aspx?type=2','selectCompany','width=300,height=530,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')"
                        style="width: 54px" />
                </td>
                <th style="width: 100px;">
                    <asp:Label ID="Label6" runat="server" Text="采购限价："></asp:Label>
                </th>
                <td>
                    <asp:TextBox ID="txtPsPrice" runat="server" Width="64px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPsPrice"
                        Display="Dynamic" ErrorMessage="格式不正确！" ValidationExpression="^\d+(\.\d+)?$"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPsPrice"
                        Display="Dynamic" ErrorMessage="格式不正确！"></asp:RequiredFieldValidator>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <div class="listip">
        <ul>
            <li>说明：<span style="color: red">非采购产品及备案产品的采购限价仅供参考，如医疗机构确定现行采购价不超过国家最高零售价或企业自主定价规定范围，可按医疗机构现行采购价执行。</span>
            </li>
        </ul>
    </div>
    <input id="hdnCompnayId" name="hdnCompnayId" type="hidden" runat="server" />
     <input id="hdnCompanyName" name="hdnCompnayId" type="hidden" runat="server" />
    <div class="listctrl">
          &nbsp;&nbsp;
        <hz:HzButton ID="btnSave" runat="server" CssClass="btn" Text="保存" OnClick="btnSave_Click1"  OnClientClick=" return confirm('确实要设置该企业为配送企业吗？');" />
        &nbsp;
        <input id="btnBack" type="button" value="返 回" onclick="javascript:window.location.href='<%=this.ReturnUrl %>'"
            class="btn" />
    </div>
</asp:Content>
